﻿using System;
using System.Globalization;
using HslCommunication.Language;

namespace HslCommunication
{
	/// <summary>
	/// 系统的字符串资源及多语言管理中心<br />
	/// System string resource and multi-language management Center
	/// </summary>
	// Token: 0x02000020 RID: 32
	public static class StringResources
	{
		// Token: 0x06000218 RID: 536 RVA: 0x00007FF8 File Offset: 0x000061F8
		static StringResources()
		{
			bool flag = CultureInfo.CurrentCulture.ToString().StartsWith("zh");
			if (flag)
			{
				StringResources.SetLanguageChinese();
			}
			else
			{
				StringResources.SeteLanguageEnglish();
			}
		}

		/// <summary>
		/// 将语言设置为中文<br />
		/// Set the language to Chinese
		/// </summary>
		// Token: 0x06000219 RID: 537 RVA: 0x00008036 File Offset: 0x00006236
		public static void SetLanguageChinese()
		{
			StringResources.Language = new DefaultLanguage();
		}

		/// <summary>
		/// 将语言设置为英文<br />
		/// Set the language to English
		/// </summary>
		// Token: 0x0600021A RID: 538 RVA: 0x00008042 File Offset: 0x00006242
		public static void SeteLanguageEnglish()
		{
			StringResources.Language = new English();
		}

		/// <summary>
		/// 获取或设置系统的语言选项<br />
		/// Gets or sets the language options for the system
		/// </summary>
		// Token: 0x040000AE RID: 174
		public static DefaultLanguage Language = new DefaultLanguage();
	}
}
